import Mock from 'mockjs'

Mock.mock('/user/login', 'post', data => {
    // eslint-disable-next-line no-debugger
    debugger;
    const loginData = JSON.parse(data.body)
    if (loginData.username === 'admin' && loginData.password === '123456') {
        return {
            code: 200
        }
    } else {
        return {
            code: 201
        }
    }
})
export default Mock